package com.label.Model.Do;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@TableName("task_question")
@Data
public class TaskQuestion {

    @TableId(value = "question_id",type = IdType.ASSIGN_UUID)
    private String questionId;

    @TableField("detail_id")
    private String detailId;

    @TableField("task_id")
    private String taskId;

    @TableField("question_content")
    private String content;

    @TableField("question_answer")
    private String answer;

    @TableField(value = "question_states",fill = FieldFill.INSERT)
    private Integer states;//0未解答1回答了

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date updateTime;
}
